﻿@model BulletinMvc.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}

<h2>用户登录</h2>
<h4 style="margin-bottom:10px;">&#8195;
@*    请输入您的用户名及密码。 如果您还没有帐号，请 @Html.ActionLink("注册", "Register")。*@

</h4>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm()) {
         <fieldset class="logon">

            <div class="editor-label">
                @*@Html.LabelFor(m => m.UserName)*@用户名：
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @*@Html.LabelFor(m => m.Password)*@密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-check">
                @Html.CheckBoxFor(m => m.RememberMe)
                @*@Html.LabelFor(m => m.RememberMe)*@记住我的帐号？
            </div>

            <div class="editor-btn">
                <input type="submit" value="登录" /><div id="downloadie"></div>
            </div>

        </fieldset>
         @Html.ValidationSummary(true, "登录失败。密码或用户名错误，请重新登录。")
}
